package org.ns.summer.beans.anns;

import org.ns.summer.core.anns.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Component  // 继承这个注解的功能
public @interface Service {

    // 填充 Component 的 value
    @AliasFor(annotation = Component.class)
    String value() default "";

}
